# $Id: PKGBUILD 83652 2013-02-04 10:01:08Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: tardo <tardo@nagi-fanboi.net>
# Contributor: Simon Morgan <"mra84964@mra.pb.hx".decode('rot-13')>

pkgname=ht
pkgver=2.0.21
pkgrel=1
pkgdesc="A file editor/viewer/analyzer for executables"
arch=('i686' 'x86_64')
url="http://hte.sourceforge.net/"
license=('GPL')
depends=('gcc-libs' 'ncurses' 'lzo2')
source=(http://downloads.sourceforge.net/sourceforge/hte/$pkgname-$pkgver.tar.gz)
md5sums=('419a25004421b9455430f523636bdcca')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --disable-x11-textmode --enable-release --prefix=/usr
  make
  make DESTDIR=$pkgdir install

  # avoid TeX conflict
  mv $pkgdir/usr/bin/ht $pkgdir/usr/bin/hte
}
